Unit 4 Exercise 7
Exercise 7: SubSchedule - Concurrent Processes
Objective
To use a Resource to prevent multiple Container jobs from kicking off at the same time.
Summary
Create a Schedule called Process Files. Create 5 new container jobs named File 1, File 2, etc. within this Schedule and assign the SS_Repeating sub-schedule that was created in Exercise 6. These container jobs will also have a Resource Dependency to prevent them from all kicking off at the same time.
Instructions
Create the Resource
- In Library > Administration, select Resources.
- Click the Add button.
- In the Resource pop-up window:
- In the Name field, enter
ProcessFile
. - In the Description field, enter some documentation.
- Example: This resource is used in the ProcessFile SubSchedule exercise.
- In the Max Resources field, enter
1
. - Click the Save button.
- Click Back
Create the Primary Schedule
- In Library > Administration, select on Master Schedules.
- Click the Add button.
- On Master Schedule Definition screen:
- In the Name field, enter
Process Files
. - In the Documentation field, enter some documentation
- Example: This is the Parent Schedule.
- Saturday and Sunday are NOT working days.
- This schedule does use the Master Holiday Calendar
- Click the Save button.
- Close Studio
Create the Container Jobs
- In Library > Administration, select on Master Schedules.
- Select the Process Files Schedule.
- Click the View button.
- Select Add Job in the side menu.
- On the Master Job Definition screen:
- In the Name field, enter
File 1
. - In the Job Type dropdown, select Container.
- On the Master SubSchedule dropdown, select the SS-Repeating.
- Click the Save button.
- Click the Lock icon in the upper right-hand corner.
- Scroll to and expand the Frequency box.
- Within the Frequency box, move the Mon-Fri-N Frequency from the Inactive list to the Active list.
- Click Save.
- Click Back.
- Utilizing the Copy feature, copy File 1 until you have 5 new jobs with a similar naming convention.
- Example: File 2, File 3, etc.
Setup Resource Dependency
- Select File 1 and select Add Resource Dependency from the side panel.
- In the Resource pop-up:
- Select the ProcessFile Resource from the dropdown list.
- Enter the value of
1
in the Value box. - Click the Save button.
- Repeat Steps 16-17 to add Resource Dependency to all 5 jobs.
Build the Schedule
- In Operations, build the Process Files (Released) for today and check the results in Processes,